import {createWebHashHistory, createRouter, createWebHistory} from 'vue-router'

import HomeView from '../page/home/index.vue'
import InfoView from '../page/info/index.vue'
import { codeRouter } from './code'
const routes = [
    { path: '/', component: HomeView },
    { path: '/info', component: InfoView },
    codeRouter
]

const router = createRouter({
    history: import.meta.env.DEV ? createWebHistory() : createWebHashHistory(),
    routes,

})

export default router